<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a bug where indented text would appear quoted in GoogleDocs.
// Google docs uses blockquotes and FormatBlock to implement a "Quote Text"
// feature, and style rules for blockquotes appeared on the blockquotes that we
// use to implement indenting.
selection_test(
  [
    '<div contenteditable>',
     '<div>|ab</div>',
     '<blockquote>CD</blockquote>',
   '</div>',
  ],
  'indent',
  [
    '<div contenteditable>',
     '<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">',
       '<div>|ab</div>',
     '</blockquote>',
     '<blockquote>CD</blockquote>',
   '</div>',
  ],
  'Indent before BLOCKQUOTE');
</script>
